<?php

$func = function($first,$second,$fun){
    if(!is_callable($fun))
        return false;
    $result = $first+$second+$fun(1,2);
    return $result;
};

echo $func(2,4,function ($f,$s){
    return $f+$s;
});


